import moment from 'moment'
import Vue from 'vue'

moment.locale('zh-CN')

Vue.filter('relativeTime', (date) => {
  return moment(date).fromNow()
})